package com.net.xpay.core.model;

import com.net.xpay.common.enums.invoice.OpenInvoiceStatus;
import com.net.common.model.PagedModel;
import com.net.xpay.core.enums.BillPayMethod;
import com.net.xpay.core.enums.PayStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 2020/5/11 15:36

 */
@Getter
@Setter
@NoArgsConstructor
public class ChargeRecordSearchModel extends PagedModel {
    @ApiModelProperty(notes = "充值编号")
    private Long id;

    @ApiModelProperty(notes = "开票状态")
    private OpenInvoiceStatus openInvoiceStatus;

    @ApiModelProperty(notes = "支付方式")
    private BillPayMethod billPayMethod;

    @ApiModelProperty(notes = "支付状态")
    private PayStatus payStatus;

    @ApiModelProperty(notes = "创建时间下限", example = "2018-12-24 21:14:19")
    private LocalDateTime createMinTime;

    @ApiModelProperty(notes = "创建时间上限", example = "2018-12-24 21:14:26")
    private LocalDateTime createMaxTime;

    @ApiModelProperty(notes = "结束时间下限", example = "2018-12-24 21:14:19")
    private LocalDateTime endMinTime;

    @ApiModelProperty(notes = "结束时间上限", example = "2018-12-24 21:14:26")
    private LocalDateTime endMaxTime;

    @ApiModelProperty(notes = "金额的最低下限，可以为负数,单位为分")
    private Long minAmount;

    @ApiModelProperty(notes = "金额的最高上限,若此项为0,代表查询负数金额,单位为分")
    private Long maxAmount;

    //以下为后台自动填充字段,前端不要赋值
    @ApiModelProperty(notes = "用户编号")
    private Long userId;

    @ApiModelProperty(notes = "合伙人编号")
    private Long partnerId;
}
